package com.vc.aha_server_event.controller;


import com.vc.aha_server_event.annotation.RequestLimit;
import com.vc.aha_server_event.service.TravelThroughProjectNumService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Date;

/**
 * @author pcy
 * @date 2022/04/03
 */
@RestController
@RequestMapping("/travelThroughProjectNum")
public class TravelThroughProjectNumController {

    @Resource
    private TravelThroughProjectNumService travelThroughProjectNumService;

    @RequestLimit
    @PostMapping()
    public void saveTravelThroughProjectNum(@RequestParam Integer eventId,
                                            @RequestParam String timeStamp,
                                            @RequestParam Integer userId,
                                            @RequestParam Integer projectId
    ) {

        travelThroughProjectNumService.saveTravelProjectNum(eventId, timeStamp, userId, projectId);

    }
}
